/*    */ package com.umeng.newxp.common;
/*    */ 
/*    */ import android.graphics.Camera;
/*    */ import android.graphics.Matrix;
/*    */ import android.view.animation.Animation;
/*    */ import android.view.animation.Transformation;
/*    */ 
/*    */ public class f extends Animation
/*    */ {
/*    */   private final float a;
/*    */   private final float b;
/*    */   private float c;
/*    */   private float d;
/*    */   private Camera e;
/*    */   private boolean f;
/*    */   private boolean g;
/* 24 */   private final float h = 100.0F;
/*    */ 
/*    */   public f(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, boolean paramBoolean1, boolean paramBoolean2)
/*    */   {
/* 28 */     this.a = paramFloat1;
/* 29 */     this.b = paramFloat2;
/* 30 */     this.c = paramFloat3;
/* 31 */     this.d = paramFloat4;
/* 32 */     this.f = paramBoolean1;
/* 33 */     this.g = paramBoolean2;
/*    */   }
/*    */ 
/*    */   public void initialize(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
/*    */   {
/* 38 */     super.initialize(paramInt1, paramInt2, paramInt3, paramInt4);
/* 39 */     this.e = new Camera();
/* 40 */     if ((this.f) && (getDuration() > 0L))
/* 41 */       setStartOffset(getDuration());
/*    */   }
/*    */ 
/*    */   protected void applyTransformation(float paramFloat, Transformation paramTransformation)
/*    */   {
/* 46 */     float f1 = this.a;
/* 47 */     float f2 = f1 + (this.b - f1) * paramFloat;
/*    */ 
/* 49 */     float f3 = this.c;
/* 50 */     float f4 = this.d;
/* 51 */     Camera localCamera = this.e;
/*    */ 
/* 53 */     Matrix localMatrix = paramTransformation.getMatrix();
/*    */ 
/* 55 */     localCamera.save();
/*    */ 
/* 57 */     if (this.f)
/* 58 */       localCamera.translate(0.0F, 0.0F, 100.0F * (1.0F - paramFloat));
/*    */     else {
/* 60 */       localCamera.translate(0.0F, 0.0F, 100.0F * paramFloat);
/*    */     }
/*    */ 
/* 63 */     if (this.g)
/* 64 */       localCamera.rotateX(f2);
/*    */     else {
/* 66 */       localCamera.rotateY(f2);
/*    */     }
/* 68 */     localCamera.getMatrix(localMatrix);
/* 69 */     localCamera.restore();
/*    */ 
/* 71 */     localMatrix.preTranslate(-f3, -f4);
/* 72 */     localMatrix.postTranslate(f3, f4);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.newxp.common.f
 * JD-Core Version:    0.6.2
 */